import request from "@/utils/request";
import { type DynamicDataModel } from "@/api/discovery/integrated";
import { type filterListType } from "@/api/discovery/filter";
// 1.综合榜单
export const getIntegratedTopList = (page: number) => {
    return request.get<any, DynamicDataModel>(
        `http://zsjyyds.online:9000/apis/moment/moments/collect/original/integrated?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&pageSize=20&pageNum=${page}&column=original`
    );
};
// 2.热练榜单
export const getHotTopList = (page: number) => {
    return request.get<any, DynamicDataModel>(
        `http://zsjyyds.online:9000/apis/moment/moments/collect/original/popTraining?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&pageSize=20&pageNum=${page}&column=original`
    );
};
// 3.新锐榜单
export const getNewTopList = (page: number) => {
    return request.get<any, DynamicDataModel>(
        `http://zsjyyds.online:9000/apis/moment/moments/collect/original/newcomer?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&pageSize=20&pageNum=${page}&column=original`
    );
};
// 4.最新榜单
export const getLatestTopList = (page: number) => {
    return request.get<any, DynamicDataModel>(
        `http://zsjyyds.online:9000/apis/moment/moments/collect/original/newcomer?access_token=c494ae44-3adc-48ca-8749-5128a53358d7&pageSize=20&pageNum=${page}&column=original`
    );
};
// 5.筛选数据
export const getFilterTopList = () => {
    return request.get<any, filterListType>(
        `http://zsjyyds.online:9000/apis/moment/properties/filter/original?access_token=c494ae44-3adc-48ca-8749-5128a53358d7`
    );
};
